import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { HydratedDocument } from 'mongoose';

export type OrderPowerDataDocument = HydratedDocument<OrderPowerData>;

@Schema()
export class OrderPowerData {
  @Prop({
    type : 'number'
  })
  orderId: number;

  @Prop({
    type : Object
  })
  data : {
    [key:string] : {
      [key:string] : any
    }
  }
}

export const OrderPowerDataSchema = SchemaFactory.createForClass(OrderPowerData);
